#Borland make sample, (c) FiveTech Software 2005-2009

HBDIR=c:\harbour
BCDIR=c:\bcc582
FWDIR=c:\fwteam

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\;.\funcs
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\;.\c
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =         \
CBMENU.PRG    \
CBUTTON.PRG   \
COMBOBOX.PRG  \
DIALOG.PRG    \
EDIT.PRG      \
LABEL.PRG     \
LISTBOX.PRG   \
MENU.PRG      \
PBMENU.PRG    \
PBUTTON.PRG   \
RBMENU.PRG    \
RBUTTON.PRG   \
SCRLLBAR.PRG  \
VISUAL.PRG    \
WINDOW.PRG    \
ALT2CHR.PRG   \
DIRECTRS.PRG  \
DIRTREE.PRG   \
DRIVES.PRG    \
FILENAME.PRG  \
LABELLEN.PRG  \
MKEYWAIT.PRG  \
SCRSHADO.PRG

C =          \
BIT.C        \
BTNDRAW.C    \
CHDIR.C      \
CLMOUSE.C    \
COLOR2N.C    \
DRIVE.C      \
DRVSELEC.C   \
EGACOLOR.C   \
KEYALT.C     \
LOGDRVES.C   \
MOUSE.C      \
SAYHOT.C     \
SCRSAYH.C         

PROJECT    : dialog32.lib

dialog32.lib  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ)
   echo off

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I.;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
  $(BCDIR)\bin\tlib ..\lib\dialog32.lib -+ obj\$&.obj,,

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ > tmp
  echo -I$(HBDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $<
  $(BCDIR)\bin\tlib ..\lib\dialog32.lib -+ obj\$&.obj,,
  del tmp